/**
 * @description: 应用配置信息表
 * @version: 0.0.1
 * @author: z..
 * @Date: 2023-06-12 18:16:39
 */

import { Table, Model, Column, CreatedAt, UpdatedAt, DataType } from 'sequelize-typescript';

@Table({ tableName: 'robot_webapi_logs' })
export class RobotWebapiLogs extends Model {
  @Column({
    primaryKey: true,       //主键
    autoIncrement: true,    //自增
    comment: "自增id"       //注释:只在代码中有效
  })
  id: number;

  @Column({
    type: DataType.NUMBER,
  })
  webapi_id: number;

  @Column({
    type: DataType.TEXT,
    comment: "记录名称"
  })
  log_name: string;

  @Column({
    type: DataType.TEXT,
    comment: "接口返回记录"
  })
  log_res: string;

  @Column({
    type: DataType.NUMBER,
    comment: "调用是否成功"
  })
  is_success: number;

  @Column({
    type: DataType.TEXT,
    comment: "消息发送日志"
  })
  alarm_res: string;

  @Column({
    type: DataType.NUMBER,
    comment: "是否是手动测试日志"
  })
  is_testing: number;

  @CreatedAt
  created_at: Date;

  @UpdatedAt
  updated_at: Date;
}